{include file="public/header" /}


<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>{$Think.lang.ds_payment}</h3>
                <h5></h5>
            </div>
            {include file="public/admin_items" /}
        </div>
    </div>

    <table class="ds-default-table">
        <thead>
            <tr>
                <th width="10%">{$Think.lang.payment_index_name}</th>
                <th width="10%">{$Think.lang.payment_index_enable}</th>
                <th width="10%">{$Think.lang.payment_index_platform}</th>
                <th width="20%">{$Think.lang.payment_index_desc}</th>
                <th>{$Think.lang.ds_handle}</th>
            </tr>
        </thead>
        <tbody>
            {foreach name="payment_list" item="payment"}
            <tr>
                <td>{$payment.payment_name}</td>
                <td>{if $payment.payment_state eq '1'}{$Think.lang.payment_index_enable_ing}{else}{$Think.lang.payment_index_disable_ing}{/if}</td>
                <td>{$payment.payment_platform}</td>
                <td>{$payment.payment_desc}</td>
                <td>
                    {if $payment.install == '1'}
                    <a href="javascript:dsLayerOpen('{:url('Payment/edit',['payment_code'=>$payment.payment_code])}','{$Think.lang.ds_configure}-{$payment.payment_name}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_configure}</a>
                    <a href="javascript:dsLayerConfirm('{:url('Payment/del',['payment_code'=>$payment.payment_code])}','{$Think.lang.ds_ensure_del}')" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_uninstall}</a>
                    {else/}
                    <a href="javascript:dsLayerConfirm('{:url('Payment/install',['payment_code'=>$payment.payment_code])}','{$Think.lang.ds_ensure_install}')" class="dsui-btn-add"><i class="iconfont"></i>{$Think.lang.ds_install}</a>
                    {/if}
                </td>
            </tr>
            {/foreach}
        </tbody>
    </table>
</div>


